package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.atguigu.gmall.product.vdo.ValueJsonDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
* @author Dell
* @description 针对表【spu_sale_attr(spu销售属性)】的数据库操作Mapper
* @createDate 2022-05-18 20:35:26
* @Entity com.atguigu.gmall.product.domain.SpuSaleAttr
*/
public interface BaseSpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {


    /**
     * 根据skuId查询所有销售属性和值
     * @param skuId
     * @return
     */
    List<SpuSaleAttr> getSkuSaleAttrAndValue(@Param("skuId") Long skuId);

    List<ValueJsonDo> getValuesSkuJson(@Param("skuId") Long skuId);
}
